.class Lcom/htc/android/footprints/service/LocationAgent$3;
.super Landroid/os/Handler;
.source "LocationAgent.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/htc/android/footprints/service/LocationAgent;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/service/LocationAgent;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/service/LocationAgent;)V
    .locals 0
    .parameter

    .prologue
    .line 537
    iput-object p1, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6
    .parameter "message"

    .prologue
    const/16 v5, 0x10

    const/16 v4, 0xf

    const/4 v3, 0x1

    const-string v2, "LocationAgent"

    .line 538
    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    .line 580
    :cond_0
    :goto_0
    :pswitch_0
    return-void

    .line 540
    :pswitch_1
    const-string v0, "LocationAgent"

    const-string v0, "HANDLER_UPDATE_STATUS"

    invoke-static {v2, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 544
    :pswitch_2
    const-string v0, "LocationAgent"

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "TRACKING_TIMEOUT, isTimeoutNotify = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    #getter for: Lcom/htc/android/footprints/service/LocationAgent;->isTimeoutNotify:Z
    invoke-static {v1}, Lcom/htc/android/footprints/service/LocationAgent;->access$800(Lcom/htc/android/footprints/service/LocationAgent;)Z

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 545
    const-string v0, "LocationAgent"

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "TRACKING_TIMEOUT, mCurMode = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    #getter for: Lcom/htc/android/footprints/service/LocationAgent;->mCurMode:I
    invoke-static {v1}, Lcom/htc/android/footprints/service/LocationAgent;->access$100(Lcom/htc/android/footprints/service/LocationAgent;)I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 547
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    #getter for: Lcom/htc/android/footprints/service/LocationAgent;->mCurMode:I
    invoke-static {v0}, Lcom/htc/android/footprints/service/LocationAgent;->access$100(Lcom/htc/android/footprints/service/LocationAgent;)I

    move-result v0

    const/16 v1, 0xb

    if-ne v0, v1, :cond_2

    .line 548
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    #getter for: Lcom/htc/android/footprints/service/LocationAgent;->isTimeoutNotify:Z
    invoke-static {v0}, Lcom/htc/android/footprints/service/LocationAgent;->access$800(Lcom/htc/android/footprints/service/LocationAgent;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 549
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    const/16 v1, 0xc

    #setter for: Lcom/htc/android/footprints/service/LocationAgent;->mCurMode:I
    invoke-static {v0, v1}, Lcom/htc/android/footprints/service/LocationAgent;->access$102(Lcom/htc/android/footprints/service/LocationAgent;I)I

    .line 550
    const-string v0, "LocationAgent"

    const-string v0, "TRACKING_TIMEOUT, mCurMode = MODE_TIMEOUT"

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 553
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    #calls: Lcom/htc/android/footprints/service/LocationAgent;->startTimer()V
    invoke-static {v0}, Lcom/htc/android/footprints/service/LocationAgent;->access$900(Lcom/htc/android/footprints/service/LocationAgent;)V

    goto :goto_0

    .line 556
    :cond_2
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    #getter for: Lcom/htc/android/footprints/service/LocationAgent;->mCurMode:I
    invoke-static {v0}, Lcom/htc/android/footprints/service/LocationAgent;->access$100(Lcom/htc/android/footprints/service/LocationAgent;)I

    move-result v0

    if-ne v0, v4, :cond_3

    .line 557
    const-string v0, "LocationAgent"

    const-string v0, "MODE_PAUSE_STANDBY  timeout !!!"

    invoke-static {v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 558
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    #setter for: Lcom/htc/android/footprints/service/LocationAgent;->isTrackingAfterResume:Z
    invoke-static {v0, v3}, Lcom/htc/android/footprints/service/LocationAgent;->access$1002(Lcom/htc/android/footprints/service/LocationAgent;Z)Z

    .line 559
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    invoke-virtual {v0}, Lcom/htc/android/footprints/service/LocationAgent;->stopTrackingWithoutNotify()V

    goto/16 :goto_0

    .line 561
    :cond_3
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    #getter for: Lcom/htc/android/footprints/service/LocationAgent;->mCurMode:I
    invoke-static {v0}, Lcom/htc/android/footprints/service/LocationAgent;->access$100(Lcom/htc/android/footprints/service/LocationAgent;)I

    move-result v0

    if-ne v0, v5, :cond_0

    .line 562
    const-string v0, "LocationAgent"

    const-string v0, "MODE_PAUSE_WAIT_TIMEOUT"

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 563
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    #setter for: Lcom/htc/android/footprints/service/LocationAgent;->isTrackingAfterResume:Z
    invoke-static {v0, v3}, Lcom/htc/android/footprints/service/LocationAgent;->access$1002(Lcom/htc/android/footprints/service/LocationAgent;Z)Z

    .line 564
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    invoke-virtual {v0}, Lcom/htc/android/footprints/service/LocationAgent;->stopTrackingWithoutNotify()V

    goto/16 :goto_0

    .line 569
    :pswitch_3
    const-string v0, "LocationAgent"

    const-string v0, "HANDLER_WAIT_FOR_PAUSE"

    invoke-static {v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 571
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    #getter for: Lcom/htc/android/footprints/service/LocationAgent;->mCurMode:I
    invoke-static {v0}, Lcom/htc/android/footprints/service/LocationAgent;->access$100(Lcom/htc/android/footprints/service/LocationAgent;)I

    move-result v0

    if-ne v0, v4, :cond_0

    .line 572
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    #setter for: Lcom/htc/android/footprints/service/LocationAgent;->mCurMode:I
    invoke-static {v0, v5}, Lcom/htc/android/footprints/service/LocationAgent;->access$102(Lcom/htc/android/footprints/service/LocationAgent;I)I

    goto/16 :goto_0

    .line 577
    :pswitch_4
    iget-object v0, p0, Lcom/htc/android/footprints/service/LocationAgent$3;->this$0:Lcom/htc/android/footprints/service/LocationAgent;

    #calls: Lcom/htc/android/footprints/service/LocationAgent;->notifyClient()V
    invoke-static {v0}, Lcom/htc/android/footprints/service/LocationAgent;->access$1100(Lcom/htc/android/footprints/service/LocationAgent;)V

    goto/16 :goto_0

    .line 538
    nop

    :pswitch_data_0
    .packed-switch 0x64
        :pswitch_2
        :pswitch_0
        :pswitch_0
        :pswitch_1
        :pswitch_4
        :pswitch_3
    .end packed-switch
.end method
